package com.sunzn.media.sample;

import android.app.Activity;
import android.content.Intent;
import android.util.Log;

import com.sunzn.media.library.MediaActivity;
import com.sunzn.media.library.help.SelectedItemCollection;

import java.util.List;

public class MediaSelectorActivity extends MediaActivity {

    public static void start(Activity context) {
        Intent intent = new Intent(context, MediaSelectorActivity.class);
        context.startActivity(intent);
        context.overridePendingTransition(R.anim.anim_bottom_in, R.anim.anim_page_static);
    }

    @Override
    public void onMake(SelectedItemCollection collection) {
        List<String> data = collection.asListOfString();
        for (int i = 0; i < data.size(); i++) {
            Log.e("MediaSelectorActivity", data.get(i));
        }
    }

    @Override
    public void onNext(SelectedItemCollection collection) {
        List<String> data = collection.asListOfString();
        for (int i = 0; i < data.size(); i++) {
            Log.e("MediaSelectorActivity", data.get(i));
        }
    }

}
